<div class='fui-page fui-page-current' ng-if="pagedata.op=='main'">
	<div class="fui-header">
			<div class="fui-header-left" onclick="window.history.go(-1);">
				<a class="back"></a>
			</div>
			<div class="title">发起众筹</div>
			<div class="fui-header-right"></div>
	</div>
	<div class="fui-content">
	<div class="weui_cells weui_cells_form">
				<div class="weui_cell weui_vcode">
					<div class="weui_cell_hd"><label class="weui_label">众筹名称</label></div>
					<div class="weui_cell_bd weui_cell_primary">
						<input class="weui_input" type="text" ng-model="pagedata.post.title" placeholder="请输入您的众筹名称">
					</div>
				</div>
				<div class="weui_cell weui_vcode">
					<div class="weui_cell_hd"><label class="weui_label">众筹分类</label></div>
					<div class="weui_cell_bd weui_cell_primary" style="width:33%">
								<select ng-model="pagedata.post.cid" class="form-control tpl-province">
								<option value="" selected="selected">选择所属分类</option>
								<option ng-repeat="(key,value) in pagedata.list" value="{{key}}" ng-selected="pagedata.post.cid==value">{{value}}</option>
								</select>
					</div>
				</div>
				<div class="weui_cell weui_vcode">
					<div class="weui_cell_hd"><label class="weui_label">目标金额</label></div>
					<div class="weui_cell_bd weui_cell_primary">
						<input class="weui_input" type="number" ng-model="pagedata.post.goalmoney" placeholder="请输入众筹目标金额">
					</div>
				</div>
				<div class="weui_cell weui_vcode">
					<div class="weui_cell_hd"><label class="weui_label">您的姓名</label></div>
					<div class="weui_cell_bd weui_cell_primary">
						<input class="weui_input" type="text" ng-model="pagedata.post.faname" placeholder="请输入您的姓名">
					</div>
				</div>
				<div class="weui_cell weui_vcode">
					<div class="weui_cell_hd"><label class="weui_label">受助人姓名</label></div>
					<div class="weui_cell_bd weui_cell_primary">
						<input class="weui_input" type="text" ng-model="pagedata.post.shouname" placeholder="请输入受助人的姓名">
					</div>
				</div>
				<div class="weui_cell weui_vcode">
					<div class="weui_cell_hd"><label class="weui_label">关系</label></div>
					<div class="weui_cell_bd weui_cell_primary" style="width:33%">
								<select ng-model="pagedata.post.rid" class="form-control tpl-province">
								<option value="" selected="selected">选择您与受助人的关系</option>
								<option ng-repeat="(key,value) in pagedata.relationlist" value="{{key}}" ng-selected="pagedata.post.rid==value">{{value}}</option>
								</select>
					</div>
				</div>
	</div>
	<div class="weui_cells_title">众筹说明</div>
	<div class="weui_cells weui_cells_form">
            <div class="weui_cell">
                <div class="weui_cell_bd weui_cell_primary">
                    <textarea class="weui_textarea" ng-model="pagedata.post.desc" placeholder="请输入您的众筹说明" rows="3"></textarea>
                    <div class="weui_textarea_counter"><span>0</span>/200</div>
                </div>
            </div>
    </div>
	<div class="weui_cells_title">上传证明材料</div>
	<div class="weui_cells weui_cells_form">
            <div class="weui_cell">
                <div class="weui_cell_bd weui_cell_primary">
                    <div class="weui_uploader">
                        <div class="weui_uploader_bd">
                            <ul class="weui_uploader_files">
                                <li ng-repeat="p in pagedata.post.cailiao" class="weui_uploader_file" style="background-image:url('{{tomedia(p)}}')">
									<div class="upbtn" >
										<a style="color:#f60" href="javascript:;" ng-click="pagedata.post.cailiao.splice($index-1,0);pagedata.post.cailiao.splice($index+1,1)">上移</a>
										<a style="color:#f60" href="javascript:;" ng-click="image.del=true">删除</a>
									</div>
								</li>
                            </ul>
                            <div class="weui_uploader_input_wrp" href="javascript:;" ng-click="up_file(pagedata.post,'cailiao','image',true)">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
    </div>
	<div class="weui_btn_area">
			 <a class="weui_btn weui_btn_primary" href="javascript:" id="showTooltips" ng-click="post(pagedata.post,'main')">提交</a>
	</div>
</div>
</div>
<div ng-include="sys_html('_footer')"></div>